package com.zqh.authority.dao;

import com.zqh.authority.entity.SysUserRoleEntity;
import com.zqh.common.dao.BaseMapper;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * 用户与角色关系
 *
 * @author wangzheng
 * @email wangzheng19851019@163.com
 * @url www.sungohealth.com
 * @date 2018年5月13日 上午1:01:55
 */
@MapperScan
public interface SysUserRoleMapper extends BaseMapper<SysUserRoleEntity> {

	List<Long> listUserRoleId(Long userId);
	
	int batchRemoveByUserId(Long[] id);
	
	int batchRemoveByRoleId(Long[] id);
	
}
